<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>出现最少的字符</title>
	</head>
	<body>
		<script>
			var str = '123454546575767'
			var obj = {}
			for(var i = 0; i < str.length; i++){
				var st = str.charAt(i)
//				console.log(st)
				if(!obj[st]){
					obj[st] = 1
				}else{
					obj[st]++
				}
			}
			console.log(obj)
			for(ins in obj){
				console.log(ins)
			}
			
		</script>
	</body>
</html>
